// ListCtrlEx.cpp : implementation file
//

#include "stdafx.h"
#include "listctrl_ex.h"


// CListCtrlEx

IMPLEMENT_DYNAMIC(listctrl_ex, CListCtrl)

listctrl_ex::listctrl_ex()
{

}

listctrl_ex::~listctrl_ex()
{
}


BEGIN_MESSAGE_MAP(listctrl_ex, CListCtrl)
END_MESSAGE_MAP()



// CListCtrlEx message handlers



BOOL 
listctrl_ex::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
	// TODO: Add your specialized code here and/or call the base class
	if ( message == WM_LISTCTRL_EVENT_LBTNDOWN )
	{
		CString str;
		int nItem = (int)wParam;
		CString strID = (LPCTSTR)lParam;
		str.Format( _T("CListCtrlEx: Recieve Message itemid=%d, strID=%s"), nItem, strID);
		aot_log_debug(AOT_LM_DEBUG,"%s",(LPCSTR)(LPCTSTR)str);
		//MessageBox( str, _T("Recieve Message"), MB_OK);
	}

	return CListCtrl::OnWndMsg(message, wParam, lParam, pResult);
}
